package com.iss.ljx.organ.repository;

import com.iss.ljx.duty.entity.SearchDutyEntity;
import com.iss.ljx.mybatis.entity.PtDutyEntity;
import com.iss.ljx.mybatis.entity.PtMenuEntity;
import com.iss.ljx.mybatis.entity.PtOrganEntity;
import com.iss.ljx.mybatis.flexigrid.PagingBean;
import com.iss.ljx.mybatis.ztree.ZtreeEntity;
import com.iss.ljx.organ.entity.SearchOrganEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrganDao {
    List<PtOrganEntity> queryOrganListPage(@Param("search") SearchOrganEntity search, @Param("paging") PagingBean paging);
    Integer queryOrganTotal(@Param("search")SearchOrganEntity search);

    PtOrganEntity getOrganInfoByUuid(@Param("organUuid") String organUuid);
   
    void insertOrgan(@Param("ptOrganEntity") PtOrganEntity ptOrganEntity);

    void organUpdate(@Param("ptOrganEntity") PtOrganEntity ptOrganEntity);
    void organDelete(@Param("organUuid") String organUuid);

    String queryOrganTreeByOrganUuid(@Param("organUuid")String organUuid);
    void updateParentUuidByOrganUuid(@Param("organUuid")String organUuid, @Param("parentUuid")String parentUuid);

}
